﻿using System;

namespace Heroius.NeuTabDiff
{
    public class Record
    {
        public Record(RecordCollection collection, string[] values){
            Parent = collection;
            Values = values;
        }

        RecordCollection Parent;
        string[] Values;

        public string this[string key] { get { return Values[Array.IndexOf(Parent.PropNames, key)]; } }

        public string KeyValue { get { return Values[Parent.KeyIndex]; } }
        public string GroupValue { get { return Values[Parent.GroupIndex]; } }
    }
}
